//
//  FinishTaskDetailViewController.m
//  BaishidaiKnight
//
//  Created by mac book on 2019/1/30.
//  Copyright © 2019年 sy. All rights reserved.
//

#import "FinishTaskDetailViewController.h"

@interface FinishTaskDetailViewController ()

@end

@implementation FinishTaskDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    
    [self queryData];
}


-(void)queryData{

    NSDictionary* arg = @{
                          @"ince":@"get_order_info",
                          @"main_id":self.main_id,
                          @"emp_id":[UserHandle shareInstance].userId
                          
                          };
    
    [BSDNetTool PostURL:kHost  parameters:arg succeed:^(NSDictionary *data) {
        NSLog(@"data = %@",data);
        NSInteger flag = [[data objectForKey:@"status"]integerValue];
        if(flag == 1){
            NSDictionary* emptyDict = [data objectForKey:@"order"];
//            self.userInfoModel = [UserInfoModel mj_objectWithKeyValues:emptyDict];
            
            
            
//            [self.tableView reloadData];

        }else{
            [self alertHUD:[data objectForKey:@"fail"]];
        }
        
    } failure:^(NSError *error) {
        [self alertHUD:@"网络异常"];
    }];
    
    
    
    
}





/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
